import request from '@/utils/request'

//列表
export function listitemType(query) {
  return request({
    url: '/system/item/type/list',
    method: 'get',
    params: query
  })
}
//详情
export function getItemType(id) {
  return request({
    url: '/system/item/type/' + id,
    method: 'get'
  })
}

//新增
export function addItemType(data) {
  return request({
    url: '/system/item/type',
    method: 'post',
    data: data
  })
}

//修改
export function updateitemType(data) {
  return request({
    url: '/system/item/type',
    method: 'put',
    data: data
  })
}
//删除
export function delitemType(id) {
  return request({
    url: '/system/item/type/' + id,
    method: 'delete'
  })
}

export function listMemberRegion(query) {
  return request({
    url: '/system/region/addList',
    method: 'get',
    params: query
  })
}
export function listMemberStore(query) {
  return request({
    url: '/system/store/allList',
    method: 'get',
    params: query
  })
}